gen av_mining=(mining2006+mining_prop)/2
gen av_agri=(agri2006+agri_proportion)/2
gen exp_imp_ratio2006=(agri2006+mining2006)/(manu2006)

gen av_exp_imp_ratio=(exp_imp_ratio2006+exp_imp_ratio)/2
gen av_export_prop=(av_mining+av_agri+export_prop)/2

la var av_mining "Mining as % of Employment, Averaged 2006/2011"
la var av_agri "Agriculture as % of Employment, Averaged 2006/2011"
la var av_export_prop "Exporters as % of Employment, Averaged 2006/2011"


global xlist1 outgroup_h av_export_prop

global xlist2 outgroup_h av_export_prop H15 B8OWN Age H8 degree

global xlist3 outgroup_h av_export_prop H15 B8OWN Age H8 degree min_occ inter1

melogit china_threat $xlist1* ||DivisNum:
melogit china_threat $xlist2* ||DivisNum:
melogit china_threat $xlist3* ||DivisNum:

global xlist4 outgroup_h av_mining

global xlist5 outgroup_h av_mining H15 B8OWN Age H8 degree

global xlist6 outgroup_h av_mining H15 B8OWN Age H8 degree min_occ inter1

melogit china_threat $xlist4* ||DivisNum:
melogit china_threat $xlist5* ||DivisNum:
melogit china_threat $xlist6* ||DivisNum:

global xlist7 outgroup_h av_agri

global xlist8 outgroup_h av_agri H15 B8OWN Age H8 degree

global xlist9 outgroup_h av_agri H15 B8OWN Age H8 degree min_occ inter1

melogit china_threat $xlist7* ||DivisNum:
melogit china_threat $xlist8* ||DivisNum:
melogit china_threat $xlist9* ||DivisNum:

global xlist10 outgroup_h av_export_prop

global xlist11 outgroup_h av_export_prop H15 B8OWN Age H8 degree

global xlist12 outgroup_h av_export_prop H15 B8OWN Age H8 degree min_occ inter1

melogit china_threat $xlist10* ||DivisNum:
melogit china_threat $xlist11* ||DivisNum:
melogit china_threat $xlist12* ||DivisNum:




